package com.battle.pojo.param.userCooperation;

import com.battle.pojo.enums.UserCooperationStatusEnum;
import com.battle.pojo.enums.UserShareTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.persistence.Column;
import lombok.Data;
import nirvana.core.domains.param.PageParam;

import java.time.LocalDate;

/**
* 【描 述】：
* 【环 境】：J2SE
* 【详 细】：
*
*/
@Data
public class GetUserCooperationListParam extends PageParam {
    /**
     * 邀请人id
     */
    @Column()
    private Long initiatorId;

    /**
     * 协作者id
     */
    @Column()
    private Long userId;

    /**
     * 状态：0待协作 1已协助 2已拒绝
     */
    @Column()
    private UserCooperationStatusEnum status;

    /**
     * 关注内容类型
     */
    @Column()
    private UserShareTypeEnum type;

    /**
     * 案件类型
     */
    @Column(length = 255)
    private String caseType;

    /**
     * 救援城市
     */
    private String city;

    /**
     * 发布日期 yyyy-MM-dd
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private LocalDate issueStartDate;
    /**
     * 发布日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private LocalDate issueEndDate;


    /**
     * 搜索框 搜索战例标题
     */
    private String name;

}